package com.woniu.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 评论表
 */
@Data
@AllArgsConstructor
@ToString
@NoArgsConstructor
@ApiModel(value = "评论实体类")
public class CourseComment implements Serializable {
    @ApiModelProperty(value = "评论ID")
    private Integer id;  //                 int not null,
    @ApiModelProperty(value = "用户ID  学生ID")
    private Integer userId;//用户ID  学生ID           int not null,
    @ApiModelProperty(value = "课件ID ")
    private Integer sectionId;  //课件ID          int not null,
    @ApiModelProperty(value = "评论内容")
    private String commentContent;//评论内容       varchar(255) not null,
    @ApiModelProperty(value = "评论发布时间")
    private Date retime; //评论发布时间              datetime not null,
    @ApiModelProperty(value = "评论对应的用户")
    private User user;//评论对应的用户
}
